package com.sentrix.auto.printercenter.common;

import org.apache.commons.lang3.StringUtils;

import java.util.Objects;

public class AssertUtil {

    public static void assertNotNull(Object obj, String message) {
        if (Objects.isNull(obj)) {
            throw new RuntimeException(StringUtils.isBlank(message) ? "data can't be null" : message);
        }
    }
}
